<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <script th:src="@{/ckeditor/ckeditor.js}"></script>

    <script>


    </script>
</head>
<body>
<div>
    <!--<form method="POST" enctype="multipart/form-data" action="/index/fileupload"></form>-->
    <textarea cols="80" class="ckeditor" id="editorId" name="comments" rows="10"></textarea>
    <span th:text="${test}"></span>

</div>
<script type="text/javascript">

    CKEDITOR.replace(editorId, {
        language: 'zh-cn',
        allowedContent: true,
        removePlugins: 'elementspath',
        resize_enabled: false,
        height: '300px',
        filebrowserImageUploadUrl: '/upload2'//后端接口上传地址
    });


</script>
</body>
</html>